package yuxi;

import javax.sound.sampled.Line;
import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串:");
        String line = sc.nextLine();//ctrl+Alt+v
        System.out.println("输入的字符串为："+"\n"+ line);

    }
}
